/*
 * @Author: 余文童
 * @Date: 2020-08-10 11:56:01
 * @LastEditTime: 2020-08-13 01:30:13
 * @LastEditors: Please set LastEditors
 * @Description: 订单映射接口
 * @FilePath: \BackEnd\saleflower\src\main\java\com\wangwang\saleflower\mapper\OrderMapper.java
 */
package com.wangwang.saleflower.mapper;

import java.util.List;
import java.util.Map;

import com.wangwang.saleflower.entity.Order;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {
    public List<Order> selectAllOrder(int userId);

    public void removeOrders(Long[] listIds);

    public void addOrder(Order order);

    public void addSameOrder(int count);

    public List<Map<String, Object>> selectOrderAndProduct(Integer id);

    public Integer isOrderExist(Long id);
}